Summary:GMT/UTC/CST;/etc/localtime,/usr/share/zoneinfo/* time zone file,/etc/profile plus TZ variable;Hardware time RTC, system time; date,hwclock,tzselect;NTP relay SERVER;RPM–IVH ntp-*;ntpdate 0.uk.pool.ntp.org; Ntpq–p,watch
Part of this article is from: http://hi.baidu.com/peruke/blog/item/b8de06ec6a04583b27979132.htmlThe system is fedora:GLIBC realizes a conversion from RTC time to human readable time, the general system does not apply environment variable TZ to set
Network time Protocol (NTP) is also a new exam requirement for RHCE. Study time also by the way to review how to set up Linux time, now take out and share with youSetting up an NTP server is not difficult, but NTP itself is a very complex protocol.
Tzset# Incude >Void tzset (void );Set the time environment variable.DescriptionThe tzset () function uses the current settings of the Environment Variable TZ to assign values to three global variables: daylight, timezone, and tzname.These variables
remark: article reproduced from: http://www.cnblogs.com/liuyou/archive/2012/07/29/2614338.html
Summary:
GMT/UTC/CST;
/etc/localtime,/usr/share/zoneinfo/* time zone file,/etc/profile plus TZ variable;
Hardware time RTC, system time;
On the basis of the Linux system after installation--based on CentOS (5.8/6.4)--we mentioned how to automatically update the server time at timed intervals. Also mentioned, when the number of intranet machines, if all go to the public network NTP
After obtaining the time through the date () function, it is found that the hour time is incorrect, which is 8 hours less than the current time. Both H and h are the same, this is because the Greenwich Mean Time is obtained, which is 8 hours
1. Manage commandsSvcadm(Service status management, start, stop, etc)# SVCs to view all the current service statuses, you can use | Pipeline character redirection for more personalized searches. For example:# SVCs | grep online# SVCs | grep offline#
Linux ntp time server configuration tutorial, ntp server configuration
Network Time Protocol (NTP) is also a new test requirement for RHCE. During study, I also reviewed how to set the Linux Time. Now I will share it with you.
It is not difficult
Set the Beijing time function date_default_timezone_set () in the php Tutorial ()Definition and usageThe date_default_timezone_set () function is used to set the default time zone of all date/time functions in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.